home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_10_1986_Transactor_Publishing.d64
/
1541 write prot
(
.txt
)
next >
Wrap
Commodore BASIC
|
2023-02-26
|
193b
|
10 lines
5 rem check for write-protect (1541)
10 open 15,8,15
20 print#15,"m-r"chr$(0);chr$(28)
30 get#15,a$: a=asc(a$+chr$(0))
40 if(a and 16)then 70
50 print"write protect is on!"
60 goto 80
70 print"no write protect"
80 close 15